﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.ServiceProcess;
using System.Text;
using System.Threading.Tasks;
using Microsoft.Owin.Host;
using Microsoft.Owin.Hosting;

namespace DataCollectService
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        static void Main()
        {
            //开启SignalR服务
            WebApp.Start<Startup>("http://127.0.0.1:10008/");
            //hmsl授权
            HslCommunication.Authorization.SetAuthorizationCode("4f4c61d3-fabf-469c-9ee7-c5c6b43f2125");
            ServiceBase[] ServicesToRun;
            ServicesToRun = new ServiceBase[]
            {
                new SrvDataCollect()
            };
            ServiceBase.Run(ServicesToRun);
        }
            
            
    }
}
